package com.example.enginetestandroid;

import android.app.Application;
import android.content.Context;

import io.flutter.embedding.engine.FlutterEngineGroup;

public class App extends Application {

    public static Context app;
    public static FlutterEngineGroup flutterEngineGroup;

    @Override
    public void onCreate() {
        super.onCreate();
        app = getApplicationContext();
        // 创建FlutterEngineGroup对象
        flutterEngineGroup = new FlutterEngineGroup(this);
    }

    public static Context Instance() {
        return app;
    }

}
